<template>
  <div>
    <button class="updataPWD" @click="updataPWD">点击修改密码</button>
  </div>
</template>

<script>
import { mapActions } from "vuex";
export default {
  methods: {
    ...mapActions({
      asyncIsShowToast: "showToast/asyncIsShowToast",
    }),
    updataPWD() {
      this.asyncIsShowToast({
        type: "danger",
        msg: "密码暂时无法修改",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.updataPWD {
  background-color: lightcoral;
  border: 0;
  border-radius: 10px;
  padding: 5px 10px;
  cursor: pointer;
  color: #fff;
}
</style>
